import request from '@/utils/request'

export function fetchFlow(data) {
  return request({
    url: '/api/uni/system/flow/fetch',
    method: 'post',
    data
  })
}

// save app
export function saveFlow(data) {
  return request({
    url: '/api/uni/system/flow/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get app
export function fetchApp(data) {
  return request({
    url: '/api/uni/system/app/fetch',
    method: 'post',
    data
  })
}

// save app
export function saveApp(data) {
  return request({
    url: '/api/uni/system/app/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get merchant
export function fetchMerchant(data) {
  return request({
    url: '/api/uni/system/merchant/fetch',
    method: 'post',
    data
  })
}

// save merchant
export function saveMerchant(data) {
  return request({
    url: '/api/uni/system/merchant/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get basic
export function fetchBasic(data) {
  return request({
    url: '/api/uni/system/basic/fetch',
    method: 'post',
    data
  })
}

// save basic
export function saveBasic(data) {
  return request({
    url: '/api/uni/system/basic/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get home
export function fetchHome(data) {
  return request({
    url: '/api/uni/system/home/fetch',
    method: 'post',
    data
  })
}

// save home
export function saveHome(data) {
  return request({
    url: '/api/uni/system/home/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get wx
export function fetchWx(data) {
  return request({
    url: '/api/uni/system/wx/fetch',
    method: 'post',
    data
  })
}

// save wx
export function saveWx(data) {
  return request({
    url: '/api/uni/system/wx/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get pay
export function fetchPay(data) {
  return request({
    url: '/api/uni/system/pay/fetch',
    method: 'post',
    data
  })
}

// save pay
export function savePay(data) {
  return request({
    url: '/api/uni/system/pay/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get sms
export function fetchSms(data) {
  return request({
    url: '/api/uni/system/sms/fetch',
    method: 'post',
    data
  })
}

// save sms
export function saveSms(data) {
  return request({
    url: '/api/uni/system/sms/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get qrcode
export function fetchQrcode(data) {
  return request({
    url: '/api/uni/system/qrcode/fetch',
    method: 'post',
    data
  })
}

// save qrcode
export function saveQrcode(data) {
  return request({
    url: '/api/uni/system/qrcode/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get bird
export function fetchBird(data) {
  return request({
    url: '/api/uni/system/bird/fetch',
    method: 'post',
    data
  })
}

// save bird
export function saveBird(data) {
  return request({
    url: '/api/uni/system/bird/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------

// get express area
export function fetchExpressArea(data) {
  return request({
    url: '/api/uni/system/express-area/fetch',
    method: 'post',
    data
  })
}

// save express area
export function saveExpressSave(data) {
  return request({
    url: '/api/uni/system/express-area/save',
    method: 'post',
    data
  })
}

// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------

